#pragma once
#include <BaseCommand.h>
#include <QPointF>

class GraphicsBaseItem;

class MoveCommand : public BaseCommand
{
public:
	MoveCommand(GraphicsBaseItem* item, const QPointF& oldPos, const QPointF& newPos);
	~MoveCommand();
protected:
	void undo()override;
	void redo()override;
private:
	GraphicsBaseItem* m_item = nullptr;
	QPointF m_oldPos;
	QPointF m_newPos;
};

